import request from '/@/utils/request';
import {versions} from '/@/api/versions'

export function getPersonalInfo() {
    return request({
        url: `${versions}/system/personal/getPersonalInfo`,
        method: 'get',
    })
}


export function editPersonal(data: object) {
    return request({
        url: `${versions}/system/personal/edit`,
        method: 'put',
        data: data
    })
}

//重置個人密碼
export function resetPwdPersonal(data: object) {
    return request({
        url: `${versions}/system/personal/resetPwd`,
        method: 'put',
        data: data
    })
}


